local T_wl = WORLD_TILES.OCEAN_WATERLOG
local T_d = WORLD_TILES.DIRT
local T_dd = WORLD_TILES.DESERT_DIRT
local T_mg = WORLD_TILES.MONKEY_GROUND
local T_md = WORLD_TILES.MONKEY_DOCK

-- 可选的添加
local notes = {"PondSinkhole"}

local t = {{
    src = "map/static_layouts/default_pigking",
    prefabs = {"pigking"},
    tag = "only" -- 拥有此标签仅加载一个
}, {
    src = "map/static_layouts/charlie_1",
    prefabs = {"charlie_stage_post"},
    tag = "only" -- 拥有此标签仅加载一个
}, {
    src = "map/static_layouts/charlie_2",
    prefabs = {"statueharp_hedgespawner"},
    tag = "only"
}, {
    src = "map/static_layouts/dev_graveyard",
    prefabs = {"marblepillar", "statuemaxwell"}, -- gravestone
    tag = "only"
}, {
    src = {"map/static_layouts/chessy_1", "map/static_layouts/chessy_2", "map/static_layouts/chessy_3",
           "map/static_layouts/chessy_6", "map/static_layouts/maxwell_5", "map/static_layouts/maxwell_3",
           "map/static_layouts/sculptures_3", "map/static_layouts/sculptures_4"},
    prefabs = {"knight", "bishop", "gears", "statuemaxwell", "rook", "backpack", "marblepillar", "marbletree",
               "statueharp", "sculpture_rook", "statue_marble_muse", "statue_marble_pawn", "sculpture_bishop",
               "sculpture_knight"},
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER},
    enlarge = 1
}, {
    src = "map/static_layouts/dragonfly_arena",
    prefabs = {"lava_pond" -- "dragonfly_spawner"
    },
    tag = "alone",
    enlarge = 0
}, {
    src = "map/static_layouts/hermitcrab_01",
    prefabs = {"hermithouse_construction1"},
    tag = "alone",
}, 
-- {
--     src = {{T_mg, T_mg, T_mg, T_mg, T_mg}, {T_md, T_mg, T_mg, T_mg, T_md}, {T_md, T_mg, T_mg, T_mg, T_md},
--            {T_md, T_mg, T_mg, T_mg, T_md}, {T_mg, T_mg, T_mg, T_mg, T_mg}},
--     prefabs = {"monkeyqueen"},
--     tag = "alone",
--     range = 20
-- }, 
{
    src = "map/static_layouts/chessy_5",
    prefabs = {"statueharp"},
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER},
    enlarge = 1,
    tag = "alone"
}, 
-- {
--     src = {{WORLD_TILES.OCEAN_BRINEPOOL, WORLD_TILES.OCEAN_BRINEPOOL},
--            {WORLD_TILES.OCEAN_BRINEPOOL, WORLD_TILES.OCEAN_BRINEPOOL}},
--     prefabs = {"saltstack"},
--     range = 36
-- }, 
{
    src = {{T_dd, T_d, T_dd, T_d}, {T_dd, T_dd, T_dd, T_d}, {T_dd, T_dd, T_dd, T_dd}, {T_d, T_dd, T_d, T_dd}},
    prefabs = {"antlion"},
    tag = "alone",
}, 
-- {
--     src = {{T_wl, T_wl, T_wl, T_wl, T_wl, T_wl}, {T_wl, T_wl, T_wl, T_wl, T_wl, T_wl},
--            {T_wl, T_wl, T_wl, T_wl, T_wl, T_wl}, {T_wl, T_wl, T_wl, T_wl, T_wl, T_wl},
--            {T_wl, T_wl, T_wl, T_wl, T_wl, T_wl}, {T_wl, T_wl, T_wl, T_wl, T_wl, T_wl}},
--     prefabs = {"oceantree_pillar"},
--     range = 36
-- }, 
{
    src = "map/static_layouts/cave_entrance",
    prefabs = {"cave_entrance"},
    tag = "alone", -- 拥有此标签不聚群
    deny = {WORLD_TILES.DESERT_DIRT, WORLD_TILES.DIRT}, -- 此标签将排除这些地皮
    enlarge = 2,
}, {
    src = "map/static_layouts/maxwell_1",
    prefabs = {"marblepillar"},
    tag = "alone",
    enlarge = 1,
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER}
}, {
    src = {"map/static_layouts/maxwell_2", "map/static_layouts/maxwell_4", "map/static_layouts/maxwell_6"},
    prefabs = {"statuemaxwell", "marbletree", "knight"},
    tag = "alone",
    enlarge = 1,
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER}
}, {
    src = "map/static_layouts/maxwell_7",
    prefabs = {"statuemaxwell", "marbletree"},
    tag = "alone",
    enlarge = 1,
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER}
}, {
    src = "map/static_layouts/sculptures_2",
    prefabs = {"statue_marble_muse"},
    tag = "alone",
    enlarge = 1,
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER}
}, {
    src = "map/static_layouts/sculptures_5",
    prefabs = {"sculpture_rook"},
    tag = "alone",
    enlarge = 1,
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER}
}, {
    src = "map/static_layouts/sculptures_1",
    prefabs = {"sculpture_rook"},
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER},
    enlarge = 1,
    tag = "alone"
}, {
    src = "map/static_layouts/resurrectionstone",
    prefabs = {"resurrectionstone"},
    deny = {WORLD_TILES.WOODFLOOR},
    enlarge = 1,
    tag = "alone",
}, {
    src = "map/static_layouts/chessy_4",
    prefabs = {"marblepillar", "statuemaxwell"},
    deny = {WORLD_TILES.CARPET, WORLD_TILES.CHECKER},
    enlarge = 1,
    tag = "alone"
}, 
-- {
--     src = "map/static_layouts/moonbaseone",
--     prefabs = {"moonbase"},
--     tag = "only"
-- }
}
-------------------- 这里写洞穴中的内容-------------------
local t2 = {{
    src = "map/static_layouts/resurrectionstone",
    prefabs = {"resurrectionstone"},
    deny = {WORLD_TILES.WOODFLOOR},
    enlarge = 1,
    tag = "alone",
}, {
    src = "map/static_layouts/tentacle_pillar",
    prefabs = {"wormhole_MARKER"},
    tag = "alone"
}, {
    src = {"map/static_layouts/rabbittown", "map/static_layouts/rabbithermit", "map/static_layouts/rabbitcity"},
    prefabs = {"rabbithouse"},
    tag = "alone"
}, {
    src = "map/static_layouts/toadstool_arena", -- 非常遗憾，无法扫描完全
    prefabs = {"pond_cave"},
    enlarge = 1,
    deny = {WORLD_TILES.CAVE},
    tag = "alone"
}, -- 并不精准，对于多组只保留一个，这是为了让对称的也显示
{
    src = {"map/static_layouts/walledgarden"},
    tag = "alone",
    prefabs = {"minotaur_spawner", "ruins_statue_mage_spawner"}
}, 
-- {
--     src = {"map/static_layouts/altar", "map/static_layouts/barracks",
--            "map/static_layouts/barracks_two",
--            "map/static_layouts/sacred_barracks",},
--     tag = "alone",
--     prefabs = {"chessjunk_spawner", "ancient_altar_spawner", "sacred_chest","ruins_statue_head_spawner", 
--     "ruins_statue_head_nogem_spawner","ruins_statue_mage_nogem_spawner", "ruins_statue_mage_spawner", "ancient_altar_broken_spawner",
--     "bishop_nightmare_spawner", "rook_nightmare_spawner", "knight_nightmare_spawner"}
-- }
}


local MapPrefabs = {
    statuemaxwell = "statue",
    statueharp = "statue_small",
    cave_entrance = "cave_closed",
    sculpture_rook = "sculpture_rookbody_fixed",
    sculpture_bishop = "sculpture_bishopbody_fixed",
    sculpture_knight = "sculpture_knightbody_fixed",
    statue_marble_muse = "statue_small",
    statue_marble_pawn = "statue_small",
    statueharp_hedgespawner = "statue_small",
    dragonfly_spawner = "dragonfly",
    moonbase = "starstaff_portal",
    resurrectionstone = "resurrection_stone",
    hermithouse_construction1 = "hermitcrab_home2",
    monkeyqueen = "monkey_queen",
    monkeyisland_portal = "monkey_island_portal",
    rabbithouse = "rabbit_house",
    minotaur_spawner = "nightmare_timepiece_nightmare",
    ruins_statue_mage_spawner = "statue_ruins",
    ruins_statue_mage_nogem_spawner = "statue_ruins",
    ruins_statue_head_spawner = "statue_ruins",
    ruins_statue_head_nogem_spawner = "statue_ruins",
    chessjunk_spawner = "chessjunk",
    ancient_altar_spawner = "ancient_altar", -- ?
    ancient_altar_broken_spawner = "ancient_altar",
    bishop_nightmare_spawner = "bishop_nightmare",
    rook_nightmare_spawner = "rook_nightmare",
    wormhole_MARKER = "tentacle_pillar"
}

local AlwaysPrefab = {
    "resurrection_stone",
    "cave_closed",
    "antlion",
    "icefishing_hole",
    "cave_open2",
    "toadstool_cap_dark",
}

local star_layout = {
    "map/static_layouts/sacred_barracks",
    "map/static_layouts/barracks",
    "map/static_layouts/altar",
    "map/static_layouts/barracks_two",
    "map/static_layouts/walledgarden",
    -- 军事区和别的
    "map/static_layouts/rooms/atrium_hallway_two/four",
    "map/static_layouts/rooms/atrium_hallway_two/long",
    "map/static_layouts/rooms/atrium_hallway_two/three",

    "map/static_layouts/rooms/hallway_armoury/four",
    "map/static_layouts/rooms/hallway_armoury/long",
    "map/static_layouts/rooms/hallway_armoury/two",

    "map/static_layouts/rooms/pit_hallway_armoury/four",
    "map/static_layouts/rooms/pit_hallway_armoury/long",
    "map/static_layouts/rooms/pit_hallway_armoury/two",

    "map/static_layouts/rooms/pit_room_armoury/one",
    "map/static_layouts/rooms/pit_room_armoury/three",
    "map/static_layouts/rooms/pit_room_armoury/two",

    "map/static_layouts/rooms/pit_room_armoury_two/long",
    "map/static_layouts/rooms/pit_room_armoury_two/one",
    "map/static_layouts/rooms/pit_room_armoury_two/three",
    "map/static_layouts/rooms/pit_room_armoury_two/two",

    "map/static_layouts/rooms/room_armoury/one",
    "map/static_layouts/rooms/room_armoury/three",
    "map/static_layouts/rooms/room_armoury/two",

    "map/static_layouts/rooms/room_armoury_two/long",
    "map/static_layouts/rooms/room_armoury_two/one",
    "map/static_layouts/rooms/room_armoury_two/three",
    "map/static_layouts/rooms/room_armoury_two/two",
}
local star_prefab = {
    "pillar_ruins",
    "nightmarelight",
    "brokenwall_ruins",
    "wall_ruins",
    "sacred_chest",
    chessjunk_spawner = {
        "chessjunk",
        "chessjunk1",
        "chessjunk2",
        "chessjunk3",
    },
    ancient_altar_spawner = "ancient_altar",
    ruins_statue_head_spawner = "ruins_statue_head",
    ruins_statue_head_nogem_spawner = "ruins_statue_head_nogem",
    ruins_statue_mage_spawner = {"ruins_statue_mage", "ruins_statue_mage_nogem"},
    ruins_statue_mage_nogem_spawner = {"ruins_statue_mage_nogem", "ruins_statue_mage"},
    -- 补充
    "atrium_fence",
    "atrium_overgrowth",
    "sanityrock",
    "pandoraschest",
    "insanityrock",
    "atrium_rubble",
}

local star_show_prefab = {
    bishop_nightmare_spawner = "bishop_nightmare",
    rook_nightmare_spawner = "rook_nightmare",
    knight_nightmare_spawner = "knight_nightmare",
    minotaur_spawner = "minotaur",
    antlion_spawner = "antlion",
    deerspawningground = "klaus_sack",
}

return {
    infoday = t,
    infocave = t2,
    map_prefabs = MapPrefabs,
    alway_prefabs = AlwaysPrefab,
    star = star_layout,
    sp = star_prefab,
    ssp = star_show_prefab,
}
